package com.jcl.core.web.model;

import java.io.Serializable;

/**
 * @ClassName UserTokenInfo

 * @Author yyliu
 * @Date 2018/9/21 8:57
 * @Version 1.0
 **/
public class UserToken implements Serializable {

    private String corpCode;

    private String userId;
    // 角色
    private String roles;
    // 截至日期
    private Long abateDate;
    // 动态时间戳
    private Long timestamp;
    // 请求来源
    private String fromType;

    public UserToken(){

    }
    public UserToken(String corpCode,
                     String userId,
                     String roles,
                     Long abateDate,
                     Long timestamp,
                     String fromType) {
        this.corpCode = corpCode;
        this.userId = userId;
        this.roles = roles;
        this.abateDate = abateDate;
        this.timestamp = timestamp;
        this.fromType = fromType;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    public Long getAbateDate() {
        return abateDate;
    }

    public void setAbateDate(Long abateDate) {
        this.abateDate = abateDate;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getFromType() {
        return fromType;
    }

    public void setFromType(String fromType) {
        this.fromType = fromType;
    }
}
